package com.ct.ah.lab.dao;

import com.ct.ah.lab.entity.Address;
import com.ct.ah.lab.entity.User;

import java.util.List;

public interface AddressDao {
    //保存一条收货地址
    public void saveAddress(Address address);
    //用户查询收货地址
    public List<Address> list(int uid);

    public void setAddressDefault(Integer aid);
    public void setAddressNotDefault(Integer aid);
    public void deleteByAid(Integer aid);

    public Address getByAid(Integer aid);
    //修改收货地址
    public void changeAddressInfo(Address updateAddress);
    public List<Address> getDefault(int uid);
}
